<?php
/*------------------------------------------------------------------------
# company - company management 
# @author    pipapai.com
-------------------------------------------------------------------------*/

defined('_JEXEC') or die;
// disable core styles to avoid bs conflict 
OC_Util::$core_styles = array();

if(isDevMode()) {
   OCP\Util::addStyle('company', 'company');
   OCP\Util::addScript('company', 'settings');
} else {
   OCP\Util::addStyle('static', 'company');
   OCP\Util::addScript('static', 'apps/company.settings.min');
}

OCP\App::setActiveNavigationEntry('company_settings');

$lang = PFactory::getLanguage();
$lang->load("com_jobs", JPATH_SITE, "zh-CN");

$user = $_['user']; 

?>

<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('company/js', 'company.php'));?>"></script>

<div class="hr_inner_navigate clearfix">
	<ul class="clearfix">
      <?php PCompanyHelper::showNavigationMenu($_['masteruser'], 'summary');?>
   </ul>
</div>

<div class="hr_company_set span9 leftpad">
   <form id="settingsummaryform" action="<?php echo OC_Helper::linkToRoute("company_savesettings"); ?>" method="post" name="summaryform">
   <div class="summaryform">
      <div class="tips normal">请详细介绍您公司的概括</div>
      <div class="form-horizontal">
      
         <div class="control-group">
            <textarea name="summary" id="summary" class="" rows="6" maxcharlength="1000" style="height:200px; overflow:auto;"><?php echo br2nl($user->summary);?></textarea>
            <div class="charsRemaining"></div>
         </div>
         
         <div class="clearfix">
            <div class="hr-controls pull-left">
               <button class="btn btn-info pull-left">保 存</button>
               <label class="control-label hr-control-label" style="margin-left:10px;">
                 <span class="error server"></span>
               </label>
            </div>
         </div>
        
      </div>                          
   </div>
   <input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
   </form>
</div>
